package my.design.combination.model.aggregates;

import my.design.combination.model.vo.TreeNode;
import my.design.combination.model.vo.TreeRoot;

import java.util.Map;

/**
 * @author zp
 * @version 1.0
 * @description: 聚合对象，包含组织树信息
 * @date 2022/10/13 20:35
 */
public class TreeRich {
    private TreeRoot treeRoot;
    private Map<Long, TreeNode> treeNodeMap;

    public TreeRich(TreeRoot treeRoot, Map<Long, TreeNode> treeNodeMap) {
        this.treeRoot = treeRoot;
        this.treeNodeMap = treeNodeMap;
    }

    public Map<Long, TreeNode> getTreeNodeMap() {
        return treeNodeMap;
    }

    public void setTreeNodeMap(Map<Long, TreeNode> treeNodeMap) {
        this.treeNodeMap = treeNodeMap;
    }

    public TreeRoot getTreeRoot() {
        return treeRoot;
    }

    public void setTreeRoot(TreeRoot treeRoot) {
        this.treeRoot = treeRoot;
    }

    @Override
    public String
    toString() {
        return "TreeRich{" +
                "treeRoot=" + treeRoot +
                ", treeNodeMap=" + treeNodeMap +
                '}';
    }
}
